﻿using DK.ITree;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DK.Tree
{
    public class BinaryTreeNode<TKey,TData>: TreeNode<TKey, TData> where TKey : IComparable
    {
        public BinaryTreeNode<TKey, TData>? LeftChildNode;
        public BinaryTreeNode<TKey, TData>? RightChildNode;

        public BinaryTreeNode(TKey key, TData value, BinaryTreeNode<TKey, TData>? leftChildNode = null, BinaryTreeNode<TKey, TData>? rightChildNode = null):base(key, value)
        {
            LeftChildNode = leftChildNode;
            RightChildNode = rightChildNode;
        }

    }
}
